package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-08-29 10:49
 */
public class Test02 {
    public static void main(String[] args) {
        int i=1;
        int j=2;
        System.out.println("i="+i);
        System.out.println("j="+j);
        i=j;
        j=5;
        System.out.println("i="+i);
        System.out.println("j="+j);

        int[] a=new int[2];
        a[0]=0;
        a[1]=1;
        System.out.println("a[0]="+a[0]);
        System.out.println("a[1]="+a[1]);

        int[] b=new int[2];
        b[0]=10;
        b[1]=11;
        System.out.println("b[0]="+b[0]);
        System.out.println("b[1]="+b[1]);
        a=b;
        System.out.println("-------------------------------");
        System.out.println("a[0]="+a[0]);
        System.out.println("a[1]="+a[1]);
        System.out.println("b[0]="+b[0]);
        System.out.println("b[1]="+b[1]);
        b[0]=20;
        b[1]=21;
        System.out.println("-------------------------------");
        System.out.println("a[0]="+a[0]);
        System.out.println("a[1]="+a[1]);
        System.out.println("b[0]="+b[0]);
        System.out.println("b[1]="+b[1]);
    }
}
